/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pe.siass.dao;

import com.pe.siass.beans.ActorRepresentanteBean;
import java.util.List;
import org.apache.ibatis.session.SqlSession;

/**
 *
 * @author Hrengifo
 */
public class ActorRepresentanteDao {

    public ActorRepresentanteBean insertActorRepresentante(ActorRepresentanteBean actorRepresentanteBean, SqlSession sqlSession) throws Exception{
         sqlSession.insert("insertActorRepresentante", actorRepresentanteBean);
         return actorRepresentanteBean;
    }

    public int updateActorRepresentante(ActorRepresentanteBean actorRepresentanteBean, SqlSession sqlSession) throws Exception{
         int aux = sqlSession.update("updateActorRepresentante", actorRepresentanteBean);
         return aux;
    }

    public List<ActorRepresentanteBean> selectActorRepresentante(ActorRepresentanteBean actorRepresentanteBean, SqlSession sqlSession) throws Exception{
         List<ActorRepresentanteBean> lstActorRepresentanteBean = sqlSession.selectList("selectActorRepresentante", actorRepresentanteBean);
        return lstActorRepresentanteBean;
    }

}
